package com.special.threademo.concurrency.synchcriozed;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.util.PrimitiveIterator;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/7  14:52
 */
public class MyTest1 {

    private Object o = new Object();

    public void method() {
        synchronized (o) {
            System.out.println("hello,world");
        }
    }

}
